function strStr(haystack: string, needle: string): number {
    return haystack.indexOf(needle);
};
// let haystack = "hello", needle = "ll";
let haystack = "aaaaa", needle = "bba";
console.log(strStr(haystack,needle));